package com.is.common.base;

import java.io.Serializable;

/**
 * des baseresponse
 * Created by Administrator on 2017/3/29 0029.
 */
public class BaseResponse<T> implements Serializable {
    public String status;
    public String tipCode;
    public String tipMsg;
    public T data;

    public boolean success() {
        return "200".equals(tipCode);
    }

    @Override
    public String toString() {
        return "BaseResponse{" +
                "code='" + tipCode + '\'' +
                ", msg='" + tipMsg + '\'' +
                ", data=" + data +
                '}';
    }
}
